package cn.edu.cdtu.healthserver.service;

import java.util.List;

import cn.edu.cdtu.healthserver.dao.DoctorDao;
import cn.edu.cdtu.healthserver.dao.impl.DoctorDAOImp;
import cn.edu.cdtu.healthserver.domain.Doctor;
import cn.edu.cdtu.healthserver.domain.Register;

/**
 * 
 * @author DELL
 *
 */
public class DoctorInformation {
		
	DoctorDao dao = new DoctorDAOImp();
	
		public List<Doctor> outputDoctor(){
				List<Doctor> doctors=dao.query();
				return doctors;
		}
		public void insertReg(Register reg){
				dao.addReg(reg);
		}

}
